<template>
	<view class="bg">
		<u-modal v-model="show" :content="content" :show-cancel-button='true' @confirm="confirm"></u-modal>
		<view class="task_bg">
			<view class="task_one">
				<view class="task_left_top">
					<view class="task_round">
						<image src="../../../static/images/common/task.png" mode=""></image>
					</view>
					<view class="name">征地拆迁</view>
				</view>
				<view class="task_content">
					<view class="task_name">
						<view class="task_left">项目名称</view>
						<view class="task_right nameFont">{{ taskObj.itemCode_dictText }}</view>
					</view>
					<view class="task_child">
						<view class="task_test">
							<view class="task_left">地块名称</view>
							<view class="task_right childFont">{{ taskObj.relocateCode_dictText }}</view>
						</view>
						<view class="task_test">
							<view class="task_left">乡镇</view>
							<view class="task_right childFont">{{ taskObj.township_dictText }}</view>
						</view>
						<view class="task_test">
							<view class="task_left">征地总目标</view>
							<view class="task_right childFont">{{ taskObj.landTarget }}(亩)</view>
						</view>
						<view class="task_test">
							<view class="task_left">征地年度目标</view>
							<view class="task_right childFont">{{ taskObj.yearLandTarget }}(亩)</view>
						</view>
						<view class="task_test">
							<view class="task_left">征地进展</view>
							<view class="task_right childFont">{{ taskObj.landProcessDetail }}(亩)</view>
						</view>
						<view class="task_test">
							<view class="task_left">征地完成百分比</view>
							<view class="task_right childFont">{{ taskObj.landPercent }}(%)</view>
						</view>
						<view class="task_test">
							<view class="task_left">拆迁总目标</view>
							<view class="task_right childFont">{{ taskObj.landPercent }}（m²）</view>
						</view>
						<view class="task_test">
							<view class="task_left">拆迁年度目标</view>
							<view class="task_right childFont">{{ taskObj.yearRemoveTarget }}（m²）</view>
						</view>
						<view class="task_test">
							<view class="task_left">拆迁进展</view>
							<view class="task_right childFont">{{ taskObj.removeProcessDetail }}（m²）</view>
						</view>
						<view class="task_test">
							<view class="task_left">拆迁完成百分比</view>
							<view class="task_right childFont">{{ taskObj.removePercent }}（%）</view>
						</view>
						<view class="task_test">
							<view class="task_left">征迁状态</view>
							<view class="task_right childFont" v-if="taskObj.relocateType === '1'">征地</view>
							<view class="task_right childFont" v-if="taskObj.relocateType === '2'">拆迁</view>
							<view class="task_right childFont" v-if="taskObj.relocateType === '3'">征地拆迁</view>
						</view>
						<view class="task_test">
							<view class="task_left">状态</view>
							<view class="task_right childFont" v-if="taskObj.relocateStatus === '0'">未开始</view>
							<view class="task_right childFont" v-if="taskObj.relocateStatus === '1'">超前</view>
							<view class="task_right childFont" v-if="taskObj.relocateStatus === '2'">正常</view>
							<view class="task_right childFont" v-if="taskObj.relocateStatus === '3'">滞后</view>
							<view class="task_right childFont" v-if="taskObj.relocateStatus === '4'">完成</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	import {
		zdcqAgree,
		zdcqNoAgree,
		xmjzAgree,
		xmjzNoAgree,
		dcrwDetail,
		xmlcComplete,
		htsqAgree,
		lcxzSubmit,
		dcrwRevoke
	} from '@/request/zdxm.js'
	export default {
		data() {
			return {
				htsqType: null,
				role: uni.getStorageSync('role'),
				// 类型
				// 详情数据
				taskObj: {},
				dcrwObj: {},
				dcrwfkjlArr: [],
				show: false,
				content: '',
				showTqxt: false,
				modelContent: "是否确认退回提请协调？",
				lcxz: "点击选择",
				choice: '',
				showLcxz: false,
				selectorObj: [],
				xmjztype: ''
			};
		},
		onLoad(option) {
			// console.log(JSON.parse(option.item))
			this.taskObj = JSON.parse(option.item)
		},
		methods: {
			
		},
	};
</script>

<style lang="scss" scoped>
	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}

	.u-order-title {
		color: #ef4136;
		font-weight: bold;
		font-size: 32rpx;
		margin-bottom: 10rpx;
	}

	.u-order-desc {
		color: #130c0e;
		font-size: 32rpx;
		margin-bottom: 10rpx;
		font-weight: bold;
	}

	.u-order-time {
		color: rgb(200, 200, 200);
		font-size: 26rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.rightFont {
			color: #ef4136;
			font-size: 26rpx;
		}
	}

	.top_search {
		width: 100vw;
		height: 120rpx;
		background-color: #3988ff;
		display: flex;
		align-items: center;
		padding: 0 20rpx;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10;

		.search_screening {
			margin-left: 2%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;

			image {
				width: 32rpx;
				height: 32rpx;
				margin-right: 10rpx;
			}

			.font {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: rgba(255, 255, 255, 0.7);
			}
		}
	}

	.customStyle {
		width: 100%;
		height: 100%;
		// margin-top: -20rpx;
	}

	.task_bg {
		// margin-top: 120rpx;

		.task_one {
			background-color: rgba(255, 255, 255, 1);
			padding: 24rpx;
			position: relative;
			margin-bottom: 40rpx;
			box-shadow: 0px 0px 24rpx 0px rgba(48, 116, 255, 0.1);
			border-radius: 24rpx 8rpx 8rpx 8rpx;

			.line {
				width: 1rpx;
				height: calc(100% - 48rpx);
				// background-color: pink;
				position: absolute;
				left: 44rpx;
				top: 24rpx;
				border-left: 1rpx dashed rgba(48, 116, 255, 0.1);
				// z-index: 5;
			}
		}

		.record_flex {
			display: flex;
			align-items: flex-start;
			margin-bottom: 40rpx;

			.record_flex_1 {
				flex: 1;
				padding-left: 25rpx;

				.record_top {
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-bottom: 10rpx;

					.flex_1 {
						flex: 1;
						display: flex;
						align-items: center;
						justify-content: space-between;

						image {
							width: 16rpx;
							height: 14rpx;
						}
					}

					.flex_2 {
						flex: 1.5;
						display: flex;
						align-items: center;
						justify-content: space-between;

						image {
							width: 16rpx;
							height: 14rpx;
						}
					}

					.flex_right {
						display: flex;
						justify-content: flex-end;
						flex: 1;
					}

					.center_font {
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 400;
						color: #3074ff;
					}

					.name_font {
						font-size: 28rpx;
						font-family: PingFang SC;
						font-weight: bold;
						color: #272b32;
					}
				}

				.time {
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #8e9cb3;
				}
			}

			.record_flex_40 {
				width: 40rpx;

				.round {
					width: 40rpx;
					height: 40rpx;
					background: linear-gradient(-30deg, #3074ff 0%, #41baff 100%);
					box-shadow: 2rpx 3rpx 12rpx 0rpx rgba(48, 116, 255, 0.4);
					border-radius: 50%;
					display: flex;
					align-items: center;
					justify-content: center;
					z-index: 999999;

					image {
						width: 16rpx;
						height: 16rpx;
					}
				}
			}
		}

		.task_left_top {
			position: absolute;
			top: 0;
			left: 0;
			// min-width: 200rpx;
			height: 48rpx;
			background: rgba(48, 116, 255, 0.2);
			border-radius: 24rpx;
			display: flex;
			align-items: center;

			.name {
				font-size: 20rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #3074ff;
				padding: 0 30rpx 0 20rpx;
			}

			.task_round {
				width: 48rpx;
				height: 48rpx;
				background: #3074ff;
				z-index: 5;
				box-shadow: 2px 3px 12px 0px rgba(48, 116, 255, 0.4);
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;

				image {
					width: 24rpx;
					height: 24rpx;
				}
			}
		}

		.task_content {
			width: 100%;
			margin-top: 40rpx;

			.task_btnArr {
				display: flex;
				align-items: center;
				justify-content: flex-end;
				margin-top: 40rpx;
			}

			.task_btn {
				background: #3074ff;
				border-radius: 4rpx;
				padding: 8rpx 16rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-left: 20rpx;

				image {
					width: 24rpx;
					height: 24rpx;
					margin-right: 10rpx;
				}

				.more {
					width: 24rpx;
					height: 6rpx;
					margin-right: 10rpx;
				}

				.font {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: rgba(255, 255, 255, 0.7);
				}
			}

			.btn_color1 {
				background-color: rgba(231, 233, 240, 1);
			}

			.btn_color2 {
				background-color: rgba(248, 95, 120, 1);
			}

			.task_name {
				display: flex;
				padding-bottom: 40rpx;
			}

			.task_child {
				padding: 20rpx 0;
				border-top: 1rpx solid rgba(231, 233, 240, 1);
				border-bottom: 1rpx solid rgba(231, 233, 240, 1);
			}

			.task_test {
				display: flex;
				align-items: flex-start;
				margin: 20rpx 0;
			}

			.task_left {
				flex: 2.5;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #8e9cb3;
			}

			.task_left3 {
				flex: 3.2;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #8e9cb3;
			}

			.nameFont {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #272b32;
			}

			.childFont {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #272b32;
			}

			.childFontGrey {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: rgba(205, 211, 224, 1);
			}

			.task_right {
				flex: 7;
				display: flex;
				align-items: center;



				.zt_type1 {
					margin-left: 10rpx;
					background: #f85f78;
					border-radius: 4rpx;
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: rgba(255, 255, 255, 0.7);
					padding: 0 16rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.zt_type2 {
					margin-left: 10rpx;
					background: rgba(250, 173, 51, 1);
					border-radius: 4rpx;
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: rgba(255, 255, 255, 0.7);
					padding: 0 16rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
		}
	}

	.liucheng {
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #cdd3e0;
	}

	.tqxt_buttons {
		width: 100%;
		height: 98rpx;
		line-height: 98rpx;
		text-align: center;
		display: flex;
		flex-flow: row nowrap;
		justify-content: flex-start;
		align-content: center;
		position: fixed;
		bottom: 0;
		left: 0;

		view:nth-child(1) {
			flex: 1;
			background: #ffffff;
			border: 1rpx solid #e7e9f0;
			font-size: 36rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #8e9cb3;
		}

		view:nth-child(2) {
			flex: 1;
			background: #3074ff;
			font-size: 36rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #fefefe;
		}
	}

	.xmjz_buttons,
	.xmlc_buttons {
		width: 100%;
		text-align: center;
		position: fixed;
		bottom: 20rpx;
		left: 0;
		display: flex;
		flex-flow: column wrap;
		align-items: center;

		view:nth-child(1),
		view:nth-child(2) {
			width: 710rpx;
			height: 98rpx;
			line-height: 98rpx;
			border: 1rpx solid #3074ff;
			border-radius: 49rpx;
			font-size: 36rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #3074ff;
		}

		view:nth-child(2) {
			margin-top: 30rpx;
		}

		view:nth-child(3) {
			margin-top: 30rpx;
			width: 710rpx;
			height: 98rpx;
			line-height: 98rpx;
			background: #3074ff;
			border-radius: 49rpx;
			font-size: 36rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #fefefe;
		}
	}

	.htsq_buttons,
	.dcfk_buttons {
		width: 100%;
		height: 98rpx;
		line-height: 98rpx;
		background: #3074ff;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #fefefe;
		// position: fixed;
		// bottom: 0;
		// left: 0;
		text-align: center;
	}

	.bottom_div {
		width: 100%;
		height: 98rpx;
		position: fixed;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
</style>
